<!DOCTYPE html>
<html lang="en" dir="ltr" class="client-nojs">
<head>
<meta charset="UTF-8" />
<title>Getting Started (Dansk) - LOVE</title>
<meta name="generator" content="MediaWiki 1.24.2" />
<link rel="ExportRDF" type="application/rdf+xml" title="Getting Started (Dansk)" href="" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="search" type="application/opensearchdescription+xml" href="opensearch_desc.php" title="LOVE (en)" />
<link rel="EditURI" type="application/rsd+xml" href="api.php_action_rsd" />
<link rel="alternate" hreflang="x-default" href="" />
<link rel="copyright" href="http://www.gnu.org/copyleft/fdl.html" />
<link rel="alternate" type="application/atom+xml" title="LOVE Atom feed" href="" />
<link rel="stylesheet" href="" />
<!--[if IE 6]><link rel="stylesheet" href="ie60fixes.css" media="screen" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" href="ie70fixes.css" media="screen" /><![endif]--><meta name="ResourceLoaderDynamicStyles" content="" />
<link rel="stylesheet" href="" />
<style>a:lang(ar),a:lang(kk-arab),a:lang(mzn),a:lang(ps),a:lang(ur){text-decoration:none}
/* cache key: love2d_wiki:resourceloader:filter:minify-css:7:daf253d59690fd9cabb6b95510bce103 */</style>
<script src=""></script>
<script>if(window.mw){
mw.config.set({"wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"Getting_Started_(Dansk)","wgTitle":"Getting Started (Dansk)","wgCurRevisionId":7079,"wgRevisionId":7079,"wgArticleId":2029,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["LÖVE"],"wgBreakFrames":false,"wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgMonthNamesShort":["","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"wgRelevantPageName":"Getting_Started_(Dansk)","wgIsProbablyEditable":false,"wgRestrictionEdit":[],"wgRestrictionMove":[]});
}</script><script>if(window.mw){
mw.loader.implement("user.options",function($,jQuery){mw.user.options.set({"ccmeonemails":0,"cols":80,"date":"default","diffonly":0,"disablemail":0,"editfont":"default","editondblclick":0,"editsectiononrightclick":0,"enotifminoredits":0,"enotifrevealaddr":0,"enotifusertalkpages":1,"enotifwatchlistpages":1,"extendwatchlist":0,"fancysig":0,"forceeditsummary":0,"gender":"unknown","hideminor":0,"hidepatrolled":0,"imagesize":2,"math":1,"minordefault":0,"newpageshidepatrolled":0,"nickname":"","norollbackdiff":0,"numberheadings":0,"previewonfirst":0,"previewontop":1,"rcdays":7,"rclimit":50,"rows":25,"showhiddencats":0,"shownumberswatching":1,"showtoolbar":1,"skin":"love","stubthreshold":0,"thumbsize":5,"underline":2,"uselivepreview":0,"usenewrc":0,"watchcreations":1,"watchdefault":1,"watchdeletion":0,"watchlistdays":3,"watchlisthideanons":0,"watchlisthidebots":0,"watchlisthideliu":0,"watchlisthideminor":0,"watchlisthideown":0,"watchlisthidepatrolled":0,"watchmoves":0,"watchrollback":0,
"wllimit":250,"useeditwarning":1,"prefershttps":1,"language":"en","variant-gan":"gan","variant-iu":"iu","variant-kk":"kk","variant-ku":"ku","variant-shi":"shi","variant-sr":"sr","variant-tg":"tg","variant-uz":"uz","variant-zh":"zh","searchNs0":true,"searchNs1":false,"searchNs2":false,"searchNs3":false,"searchNs4":false,"searchNs5":false,"searchNs6":false,"searchNs7":false,"searchNs8":false,"searchNs9":false,"searchNs10":false,"searchNs11":false,"searchNs12":false,"searchNs13":false,"searchNs14":false,"searchNs15":false,"searchNs102":false,"searchNs103":false,"searchNs104":false,"searchNs105":false,"searchNs108":false,"searchNs109":false,"searchNs500":false,"searchNs501":false,"variant":"en"});},{},{});mw.loader.implement("user.tokens",function($,jQuery){mw.user.tokens.set({"editToken":"+\\","patrolToken":"+\\","watchToken":"+\\"});},{},{});
/* cache key: love2d_wiki:resourceloader:filter:minify-js:7:201bb6cc0b4c032fe7bbe209a0125541 */
}</script>
<script>if(window.mw){
mw.loader.load(["ext.smw.style","mediawiki.page.startup","mediawiki.legacy.wikibits","mediawiki.legacy.ajax"]);
}</script>
</head>
<body class="mediawiki ltr sitedir-ltr ns-0 ns-subject page-Getting_Started_Dansk skin-love action-view">
<div id="globalWrapper">
		<div id="column-content">
			<div id="content" class="mw-body" role="main">
				<a id="top"></a>
				
				
						<div id="p-cactions" role="navigation">
			<h5>Views</h5>

			<div>
				<ul>
				<li id="ca-nstab-main" class="selected"><a href="" title="View the content page [c]" accesskey="c">Page</a></li>
				<li id="ca-talk" class="new"><a href="" title="Discussion about the content page [t]" accesskey="t">Discussion</a></li>
				<li id="ca-viewsource"><a href="" title="This page is protected.&#10;You can view its source [e]" accesskey="e">View source</a></li>
				<li id="ca-history"><a href="" rel="archives" title="Past revisions of this page [h]" accesskey="h">History</a></li>
				</ul>
							</div>
		</div>
	
				<h1 id="firstHeading" class="firstHeading" lang="en">Getting Started (Dansk)</h1>

				<div id="bodyContent">
					<!-- <div id="siteSub">From LOVE</div> -->

					<!-- <div id="contentSub"></div> -->
										<!-- <div id="jump-to-nav" class="mw-jump">Jump to: <a href="#column-one">navigation</a>, <a href="#searchInput">search</a></div> -->

					<!-- start content -->
					<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><h2><span class="mw-headline" id="Hent_L.C3.96VE">Hent LÖVE</span></h2>
<p>Download den nyeste version af LÖVE fra <a rel="nofollow" class="external text" href="love2d2.html#download">hjemmesiden</a> og installer den. Hvis du er på Windows og ikke vil <i>installere</i> LÖVE, kan du også bare downloade den zip'ede executable og udpak dem hvor som helst
</p><p>Du kan inspicere hvilken version af LÖVE du har installere således:
</p><p><code>
love --version
</code>
</p>
<h2><span class="mw-headline" id="Lav_et_Spil">Lav et Spil</span></h2>
<p>For at lave et minimalt spil, lav en mappe hvor som helst og åben din favorit kode editor. Notepad++ er en ret god en for Windows og har bygget-ind Lua understøttelse. Lav en ny fil i mappen du lige har lavet og kald den <i>main.lua</i>. Indsæt den følgende kode i filen og gem den:
</p>
<div dir="ltr" class="mw-geshi mw-code mw-content-ltr"><div class="lua source-lua"><pre class="de1"><span class="kw1">function</span> love<span class="sy0">.</span>draw<span class="br0">&#40;</span><span class="br0">&#41;</span>
    love<span class="sy0">.</span>graphics<span class="sy0">.</span><span class="kw3">print</span><span class="br0">&#40;</span><span class="st0">&quot;Hello World&quot;</span><span class="sy0">,</span> <span class="nu0">400</span><span class="sy0">,</span> <span class="nu0">300</span><span class="br0">&#41;</span>
<span class="kw1">end</span></pre></div></div>
<h2><span class="mw-headline" id="K.C3.B8rsel_af_Spil">Kørsel af Spil</span></h2>
<p>LÖVE kan indlæse spil på to måder:
</p>
<ul><li> Fra en mappe</li>
<li> Fra en .love fil (en omdøbt .zip-fil)</li></ul>
<p>I begge tilfældere, er der nødt til at være en fil kaldet <code>main.lua</code> i roden. Denne fil vil blive indlæst når LÖVE starter. Hvis denne fil manger, vil LÖVE ikke genkende mappen eller .love filen som et spil og vil derfor klage over et forkert pakket spil. En hyppig lavet fejl er at zip'e spilmappen istedet for mappens indhold. Med LÖVE er du nødt til <i>kun</i> at zip'e spilmappens indhold, for at lave en korrekt .love-fil.
</p>
<h3><span class="mw-headline" id="Windows">Windows</span></h3>
<p>På Windows er den nemmeste måde at køre et spil på, ved at hive mappen hen på love.exe eller på en genvej til love.exe. Husk at hive mappen som indeholder <code>main.lua</code> og ikke <code>main.lua</code> selv.
</p><p>Du kan også køre det fra kommandoprompt (command line):
</p><p>For eksempel:
</p>
<pre>
love C:\spil\mitspil\
love C:\spil\pakketspil.love
</pre>
<p>På Windows er der en special mulighed, som vil vedhænge en konsol til vinduet. Dette vil gøre det muligt at se standard output.
</p><p><code>
love --console
</code>
</p>
<h3><span class="mw-headline" id="Linux">Linux</span></h3>
<p>På Linux kan du bruge terminalen (command line):
</p>
<pre>
love /home/sti/til/spil/
love /home/sti/til/pakketspil.love
</pre>
<p>Hvis du har installeret .deb filen, kan du også dobbelt klikke på .love-filerne i din file manager.
</p>
<h3><span class="mw-headline" id="Mac_OSX">Mac OSX</span></h3>
<p>På Mac OSX kan en mappe eller en .love-fil blive trukket hen på Love.app programmet. I Mac OSX terminalen (command line), kan du også bruge LÖVE således (forudsat det er installeret i Applications mappen):
<code>open -a love mitspil</code>
</p><p>I nogle tilfælde er det måske hurtigere at kalde LÖVE binary'en inde i program pakken direkte således her:
</p><p><br />
<code>/Applications/love.app/Contents/MacOS/love mitspil</code>
</p><p>Du kan opsætte et alias i din terminal til at kalde binary'en når du benytter <code>love</code> ved at tilføje et alias i din ~/.bash_profile (<code>open -a TextEdit ~/.bash_profile</code>:
</p>
<pre>
# alias to love
alias love=&quot;/Applications/love.app/Contents/MacOS/love&quot;
</pre>
<p>Du kan nu kalde love fra terminale (command line) ligesom på Linux og Windows:
</p><p><code>
love /home/sti/til/spil
</code>
</p>
<h2><span class="mw-headline" id="N.C3.A6ste_skridt">Næste skridt</span></h2>
<ul><li> <a href="tutorial_callback_functions.html" title="Tutorial:Callback Functions">Tutorial:Callback_Functions</a> vil lære dig den generelle struktur på et LÖVE spil.</li>
<li> <a href="category_tutorials.html" title="Category:Tutorials">Category:Tutorials</a> er det næste stykke af læsning</li></ul>
<h2><span class="mw-headline" id="Andre_Sprog">Andre Sprog</span></h2>
<div class="i18n">
<p><strong class="selflink">Dansk</strong>&#160;&#8211;
<a href="getting_started_deutsch.html" title="Getting Started (Deutsch)">Deutsch</a>&#160;&#8211;
<a href="getting_started.html" title="Getting Started">English</a>&#160;&#8211; 
<a href="getting_started_espa_ol.html" title="Getting Started (Español)">Español</a>&#160;&#8211;
<a href="getting_started_fran_ais.html" title="Getting Started (Français)">Français</a>&#160;&#8211;
<a href="" class="new" title="Getting Started (Indonesia) (page does not exist)">Indonesia</a>&#160;&#8211;
<a href="getting_started_italiano.html" title="Getting Started (Italiano)">Italiano</a>&#160;&#8211;
<a href="" class="new" title="Getting Started (Lietuviškai) (page does not exist)">Lietuviškai</a>&#160;&#8211;
<a href="getting_started_magyar.html" title="Getting Started (Magyar)">Magyar</a>&#160;&#8211;
<a href="getting_started_nederlands.html" title="Getting Started (Nederlands)">Nederlands</a>&#160;&#8211;
<a href="getting_started_polski.html" title="Getting Started (Polski)">Polski</a>&#160;&#8211;
<a href="getting_started_portugu_s.html" title="Getting Started (Português)">Português</a>&#160;&#8211;
<a href="getting_started_rom_n.html" title="Getting Started (Română)">Română</a>&#160;&#8211;
<a href="getting_started_slovensk.html" title="Getting Started (Slovenský)">Slovenský</a>&#160;&#8211;
<a href="" class="new" title="Getting Started (Suomi) (page does not exist)">Suomi</a>&#160;&#8211;
<a href="getting_started_svenska.html" title="Getting Started (Svenska)">Svenska</a>&#160;&#8211;
<a href="" class="new" title="Getting Started (Türkçe) (page does not exist)">Türkçe</a>&#160;&#8211;
<a href="" class="new" title="Getting Started (Česky) (page does not exist)">Česky</a>&#160;&#8211;
<a href="" class="new" title="Getting Started (Ελληνικά) (page does not exist)">Ελληνικά</a>&#160;&#8211;
<a href="" class="new" title="Getting Started (Български) (page does not exist)">Български</a>&#160;&#8211;
<a href="getting_started1.html" title="Getting Started (Русский)">Русский</a>&#160;&#8211;
<a href="" class="new" title="Getting Started (Српски) (page does not exist)">Српски</a>&#160;&#8211;
<a href="getting_started2.html" title="Getting Started (Українська)">Українська</a>&#160;&#8211;
<a href="" class="new" title="Getting Started (עברית) (page does not exist)">עברית</a>&#160;&#8211;
<a href="" class="new" title="Getting Started (ไทย) (page does not exist)">ไทย</a>&#160;&#8211;
<a href="getting_started3.html" title="Getting Started (日本語)">日本語</a>&#160;&#8211;
<a href="getting_started4.html" title="Getting Started (正體中文)">正體中文</a>&#160;&#8211;
<a href="getting_started5.html" title="Getting Started (简体中文)">简体中文</a>&#160;&#8211;
<a href="getting_started_ti_ng_vi_t.html" title="Getting Started (Tiếng Việt)">Tiếng Việt</a>&#160;&#8211;
<a href="getting_started6.html" title="Getting Started (한국어)">한국어</a> 
<br />
<span style="text-align:right;"><i><a href="help_i18n.html" title="Help:i18n">More info</a></i></span>
</p>
</div>

<!-- 
NewPP limit report
CPU time usage: 0.048 seconds
Real time usage: 0.054 seconds
Preprocessor visited node count: 298/1000000
Preprocessor generated node count: 691/1000000
Post‐expand include size: 3347/2097152 bytes
Template argument size: 1430/2097152 bytes
Highest expansion depth: 4/40
Expensive parser function count: 0/100
-->

<!-- Saved in parser cache with key love2d_wiki:pcache:idhash:2029-0!*!0!!*!*!* and timestamp 20210227043639 and revision id 7079
 -->
</div><div class="printfooter">
Retrieved from "<a dir="ltr" href="">http://love2d.org/w/index.php?title=Getting_Started_(Dansk)&amp;oldid=7079</a>"</div>
					<div id='catlinks' class='catlinks'><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="" title="Special:Categories">Category</a>: <ul><li><a href="category_l_ve.html" title="Category:LÖVE">LÖVE</a></li></ul></div></div>					<!-- end content -->
										<div class="visualClear"></div>
				</div>
			</div>
		</div>
		<div id="column-one">
			<div class="portlet" id="p-personal" role="navigation">
				<h5>Personal tools</h5>

				<div class="pBody">
					<ul>
													<li id="pt-login"><a href="" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o">Log in</a></li>
											</ul>
				</div>
			</div>
			<div class="portlet" id="p-logo" role="banner">
				<a href="index.html" class="mw-wiki-logo" title="Visit the main page"></a>
			</div>
				<div class="generated-sidebar portlet" id="p-documentation" role="navigation">
		<h5>documentation</h5>
		<div class='pBody'>
							<ul>
											<li id="n-love"><a href="love.html">love</a></li>
											<li id="n-love.audio"><a href="love1.html">love.audio</a></li>
											<li id="n-love.data"><a href="love2.html">love.data</a></li>
											<li id="n-love.event"><a href="love3.html">love.event</a></li>
											<li id="n-love.filesystem"><a href="love4.html">love.filesystem</a></li>
											<li id="n-love.font"><a href="love5.html">love.font</a></li>
											<li id="n-love.graphics"><a href="love6.html">love.graphics</a></li>
											<li id="n-love.image"><a href="love7.html">love.image</a></li>
											<li id="n-love.joystick"><a href="love8.html">love.joystick</a></li>
											<li id="n-love.keyboard"><a href="love9.html">love.keyboard</a></li>
											<li id="n-love.math"><a href="love10.html">love.math</a></li>
											<li id="n-love.mouse"><a href="love11.html">love.mouse</a></li>
											<li id="n-love.physics"><a href="love12.html">love.physics</a></li>
											<li id="n-love.sound"><a href="love13.html">love.sound</a></li>
											<li id="n-love.system"><a href="love14.html">love.system</a></li>
											<li id="n-love.thread"><a href="love15.html">love.thread</a></li>
											<li id="n-love.timer"><a href="love16.html">love.timer</a></li>
											<li id="n-love.touch"><a href="love17.html">love.touch</a></li>
											<li id="n-love.video"><a href="love18.html">love.video</a></li>
											<li id="n-love.window"><a href="love19.html">love.window</a></li>
											<li id="n-lua-enet"><a href="lua_enet.html">lua-enet</a></li>
											<li id="n-luasocket"><a href="socket.html">luasocket</a></li>
											<li id="n-utf8"><a href="utf8.html">utf8</a></li>
									</ul>
					</div>
		</div>
		<div class="generated-sidebar portlet" id="p-navigation" role="navigation">
		<h5>Navigation</h5>
		<div class='pBody'>
							<ul>
											<li id="n-Home"><a href="love2d1.html" rel="nofollow">Home</a></li>
											<li id="n-Forums"><a href="forums.html" rel="nofollow">Forums</a></li>
											<li id="n-Issue-tracker"><a href="https://github.com/love2d/love/issues" rel="nofollow">Issue tracker</a></li>
									</ul>
					</div>
		</div>
		<div class="generated-sidebar portlet" id="p-wiki_navigation" role="navigation">
		<h5>wiki navigation</h5>
		<div class='pBody'>
							<ul>
											<li id="n-mainpage-description"><a href="index.html" title="Visit the main page [z]" accesskey="z">Main page</a></li>
											<li id="n-recentchanges"><a href="" title="A list of recent changes in the wiki [r]" accesskey="r">Recent changes</a></li>
											<li id="n-randompage"><a href="" title="Load a random page [x]" accesskey="x">Random page</a></li>
									</ul>
					</div>
		</div>
			<div id="p-search" class="portlet" role="search">
			<h5><label for="searchInput">Search</label></h5>

			<div id="searchBody" class="pBody">
				<form action="w.html" id="searchform">
					<input type='hidden' name="title" value="Special:Search"/>
					<input type="search" name="search" placeholder="Search" title="Search LOVE [f]" accesskey="f" id="searchInput" />
					<input type="submit" name="go" value="Go" title="Go to a page with this exact name if exists" id="searchGoButton" class="searchButton" />&#160;
						<input type="submit" name="fulltext" value="Search" title="Search the pages for this text" id="mw-searchButton" class="searchButton" />
				</form>

							</div>
		</div>
			<div class="portlet" id="p-tb" role="navigation">
			<h5>Tools</h5>

			<div class="pBody">
				<ul>
											<li id="t-whatlinkshere"><a href="" title="A list of all wiki pages that link here [j]" accesskey="j">What links here</a></li>
											<li id="t-recentchangeslinked"><a href="" title="Recent changes in pages linked from this page [k]" accesskey="k">Related changes</a></li>
											<li id="t-specialpages"><a href="" title="A list of all special pages [q]" accesskey="q">Special pages</a></li>
											<li id="t-print"><a href="" rel="alternate" title="Printable version of this page [p]" accesskey="p">Printable version</a></li>
											<li id="t-permalink"><a href="" title="Permanent link to this revision of the page">Permanent link</a></li>
											<li id="t-info"><a href="">Page information</a></li>
											<li id="t-smwbrowselink"><a href="" rel="smw-browse">Browse properties</a></li>
									</ul>
							</div>
		</div>
			</div><!-- end of the left (by default at least) column -->
		<div class="visualClear"></div>
					<div id="footer" role="contentinfo">
						<div id="f-copyrightico">
									<a href="http://www.gnu.org/copyleft/fdl.html"><img src="gnu_fdl.png" alt="GNU Free Documentation License 1.3" width="88" height="31" /></a>
							</div>
					<div id="f-poweredbyico">
									<a href="http://www.mediawiki.org/"><img src="poweredby_mediawiki_88x31.png" alt="Powered by MediaWiki" width="88" height="31" /></a>
									<a href="https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki"><img src="smw_button.png" alt="Powered by Semantic MediaWiki" width="88" height="31" /></a>
							</div>
					<ul id="f-list">
									<li id="lastmod"> This page was last modified on 4 September 2011, at 21:46.</li>
									<li id="viewcount">This page has been accessed 11,604 times.</li>
									<li id="copyright">Content is available under <a class="external" rel="nofollow" href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License 1.3</a> unless otherwise noted.</li>
									<li id="privacy"><a href="love_privacy_policy.html" title="LOVE:Privacy policy">Privacy policy</a></li>
									<li id="about"><a href="love_about.html" title="LOVE:About">About LOVE</a></li>
									<li id="disclaimer"><a href="love_general_disclaimer.html" title="LOVE:General disclaimer">Disclaimers</a></li>
							</ul>
		</div>
		</div>
		<script>/*<![CDATA[*/window.jQuery && jQuery.ready();/*]]>*/</script><script>if(window.mw){
mw.loader.state({"site":"loading","user":"ready","user.groups":"ready"});
}</script>
<script>if(window.mw){
mw.loader.load(["ext.smw.tooltips","mediawiki.action.view.postEdit","mediawiki.user","mediawiki.hidpi","mediawiki.page.ready","mediawiki.searchSuggest"],null,true);
}</script>
<script>if(window.mw){
document.write("\u003Cscript src=\"http://love2d.org/w/load.php?debug=false\u0026amp;lang=en\u0026amp;modules=site\u0026amp;only=scripts\u0026amp;skin=love\u0026amp;*\"\u003E\u003C/script\u003E");
}</script>
<script>if(window.mw){
mw.config.set({"wgBackendResponseTime":125});
}</script></body></html>
